<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <title>审批</title>
    <link href="/static/crm/lib/layui-v2.6.3/css/layui.css" media="all" rel="stylesheet">
</head>
<body>
<div class="layui-form-item" style="width:500px;">
    <form class="layui-form ">
        <div class="layui-form-item">
            <label class="layui-form-label">合同ID</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled field-id" disabled name="id" readonly
                       type="text">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">合同名称</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled field-name" disabled name="name" readonly
                       type="text" value="1111">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">选择客户</label>
            <div class="layui-input-block field-client_id">
                <select lay-filter="" name="client_id">
                    <option value=""></option>
                    <option value="0">写作</option>
                    <option selected="" value="1">阅读</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">选择商机</label>
            <div class="layui-input-block field-client_id">
                <select lay-filter="" name="business_id">
                    <option value=""></option>
                    <option value="0">写作</option>
                    <option selected="" value="1">阅读</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">合同金额</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled field-money" disabled name="money" readonly
                       type="text" value="1111">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">下单时间</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled field-order_time" disabled name="order_time"
                       readonly type="text" value="2022-12-11">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">合同开始时间</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled field-start_time" disabled name="start_time"
                       readonly type="text" value="">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">合同结束时间</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled field-end_time" disabled name="end_time"
                       readonly type="text" value="1111">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">客户签约人</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled" disabled name="id" readonly type="text"
                       value="1111">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">公司签约人</label>
            <div class="layui-input-block">
                <input autocomplete="off" class="layui-input layui-disabled field-sale_id" disabled name="sale_id"
                       readonly type="text" value="1111">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">支付方式</label>
            <div class="layui-input-block">
                <select lay-filter="" name="interest">
                    <option value=""></option>
                    <option value="0">微信</option>
                    <option selected="" value="1">支付宝</option>
                    <option value="0">银联支付</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item" style="margin-left: 80px;">
            <button class="layui-btn" lay-filter="demo1" lay-submit="*">审核通过</button>
            <button class="layui-btn" lay-filter="demo2" lay-submit="">不通过</button>
            <button class="layui-btn layui-btn-primary" type="reset">重置</button>
        </div>
    </form>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/layui/2.7.6/layui.min.js"></script>
<script>
    layui.config({
        base: '/static/layui/modules/' //假设这是你存放拓展模块的根目录
    });

    layui.use(['form', 'layedit', 'laydate', 'func'], function () {
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate

        layui.func.assign(<?php echo json_encode($rows); ?>);

        //日期
    laydate.render({
            elem: '#date'
        }
    )
        ;
        laydate.render({
            elem: '#date1'
        });
        //表单取值
        layui.$('#LAY-component-form-getval').on('click', function () {
            var data = form.val('example');
            alert(JSON.stringify(data));
        });
    })

</script>
</body>
</html>